package com.foreveross.fetl.util;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import com.google.common.collect.Lists;

public class AirLinesData {
	
	public static Map<String,Map<String,List<String>>> getDoubleMapAirLines(){
		Map<String,Map<String,List<String>>> map =new LinkedHashMap<String,Map<String,List<String>>>();
		
		//航信FTP 航线配置
			Map<String,List<String>> hangxinMap= new LinkedHashMap<String,List<String>>();

			
		List<String> list = Arrays.asList("PEK-BOS", "PEK-CDG", "PEK-FRA",
				"PEK-HKG", "PEK-IAD", "PEK-JFK", "PEK-LAX", "PEK-LHR",
				"PEK-MUC", "PEK-ORD", "PEK-SEA", "PEK-SFO", "PEK-SVO",
				"PEK-YVR", "PEK-YYZ", "PVG-CDG", "PVG-FRA", "PVG-LAX",
				"PVG-LHR", "PVG-SFO");
//		List<String >nullList=Lists.newArrayList();
//			hangxinMap.put("00009", list);//ITA
		hangxinMap.put("00009",new ArrayList<String>());
//			hangxinMap.put("00003", Arrays.asList("PEK-BOS", "PEK-CDG", "PEK-FRA",
//		"PEK-HKG", "PEK-IAD", "PEK-JFK", "PEK-LAX", "PEK-LHR",
//		"PEK-MUC", "PEK-ORD", "PEK-SEA", "PEK-SFO", "PEK-SVO",
//		"PEK-YVR", "PEK-YYZ", "PVG-CDG", "PVG-FRA", "PVG-LAX",
//		"PVG-LHR", "PVG-SFO","PEK-HNL"));//携程
		hangxinMap.put("20004",new ArrayList<String>());
//			hangxinMap.put("00002", list);//去哪儿
		hangxinMap.put("00002",new ArrayList<String>());
//			hangxinMap.put("00008", list);//天巡
		hangxinMap.put("00008",new ArrayList<String>());
//			hangxinMap.put("00006", list);//卡雅卡
		hangxinMap.put("00006",new ArrayList<String>());
			
//			hangxinMap.put("20004", Arrays.asList("PEK-BOS", "PEK-HKG", "PEK-LAX",
//					"PEK-LHR", "PEK-ORD", "PEK-SEA", "PEK-SFO", "PEK-SVO",
//					"PEK-YYZ"));// 海航
		hangxinMap.put("20004",new ArrayList<String>());
		hangxinMap.put("20006", Arrays.asList("PEK-CDG", "PEK-FRA", "PEK-HKG",
				"PEK-IAD", "PEK-JFK", "PEK-LAX", "PEK-LHR", "PEK-MUC",
				"PEK-SFO", "PEK-SVO", "PEK-YVR", "PVG-CDG", "PVG-FRA","PEK-HNL"));// 国航
//		hangxinMap.put("20006",new ArrayList<String>());
//		hangxinMap.put("20022",
//				Arrays.asList("PEK-BOS", "PEK-LAX", "PEK-ORD", "PVG-LAX"));// 美国航空
		hangxinMap.put("20022",new ArrayList<String>());
//		hangxinMap.put("20023", Arrays.asList("PEK-BOS", "PEK-IAD", "PEK-LAX",
//				"PEK-ORD", "PEK-SFO", "PVG-LAX", "PVG-SFO","PEK-EWR" ));// 美国联合航空
		hangxinMap.put("20023",new ArrayList<String>());
		/**
		 * 暂时写死，之后可以优化写入数据库，并开发出相应的控制页面
		 * 航信抓取任务
		 * 第一迭代：南航，东航，阿联酋，加拿大，德国汉莎，英国航空
		 * 第二迭代：国航，俄罗斯，全日空
		*/
		
			hangxinMap.put("20001", Arrays.asList("PEK-LAX", "PVG-CDG", "PVG-FRA",
					"PVG-LAX", "PVG-LHR", "PVG-SFO"));// 东方航空
			
			hangxinMap.put("20005", Arrays.asList("PEK-CDG", "PEK-HKG", "PEK-LAX",
					"PEK-LHR", "PEK-YVR"));// 南航
			
			hangxinMap.put("20008", Arrays.asList("PEK-BOS", "PEK-CDG", "PEK-FRA",
					"PEK-IAD", "PEK-JFK", "PEK-LHR", "PEK-MUC", "PVG-CDG",
					"PVG-FRA", "PVG-LHR"));// 啊联酋
	
			hangxinMap.put("20031", Arrays.asList("PEK-FRA", "PEK-LHR","PEK-MUC", "PVG-LHR", "PVG-CDG", "PVG-FRA"));//德国汉莎 
			hangxinMap.put("20029", Arrays.asList("PEK-YVR", "PEK-YYZ"));// 加拿大
			hangxinMap.put("20033", Arrays.asList("PEK-LHR", "PVG-LHR"));// 英国航空
	
			//增加航信任务其他站点，不加入航线数据（供生成 空压缩包使用）
			hangxinMap.put("00003",new ArrayList<String>());//携程
			hangxinMap.put("20024",new ArrayList<String>());//国泰
			hangxinMap.put("20025",new ArrayList<String>());//俄罗斯
			hangxinMap.put("20026",new ArrayList<String>());//大韩
			hangxinMap.put("20027",new ArrayList<String>());//韩亚
			hangxinMap.put("20028",new ArrayList<String>());//达美
			hangxinMap.put("20030",new ArrayList<String>());//全日空航空公司
			hangxinMap.put("20032",new ArrayList<String>());//法国航空公司
			
			
			
			map.put("hangxin", hangxinMap);
			
			return Collections.unmodifiableMap(map);
		
	}

}
